<template>
    <div>
        <button @click="changeData">改变sister中的数据</button>
    </div>
</template>

<script>
import store from "../store.js";

export default {
    methods:{
        changeData(){
            store.setStateMessage("哈哈哈");
            console.log(store.state.message);
        }
    }
}
</script>